﻿using WebAPI.Util;
using System.ComponentModel.DataAnnotations;

namespace RapidSalesAdminPortalAPI.Models
{
    public class MultiLangSetListRequest
    {
        /// <summary>
        /// 语言标识
        /// </summary>
        [Required(ErrorMessage = "language is required")]
        public int lang { set; get; }
    }

    public class MultiLangSetListResponse
    {
        public Guid Id { get; set; }
        public string Code { get; set; } = null!;
        public string Value { get; set; } = null!;
        public string? Description { get; set; }
        public int LangType { get; set; }
        public bool? Enable { get; set; }
    }

    public class InsertRequest
    {
        public string Code { get; set; }
        public string Value { get; set; }
        public string Description { get; set; }
        public int LangType { get; set; }
        public bool Enable { get; set; }
    }

    public class UpdateRequest
    {
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Value { get; set; }
        public int LangType { get; set; }
        public string Description { get; set; }
        public bool Enable { get; set; }
    }
}
